/**********************************************************************/
/*   ____  ____                                                       */
/*  /   /\/   /                                                       */
/* /___/  \  /                                                        */
/* \   \   \/                                                       */
/*  \   \        Copyright (c) 2003-2009 Xilinx, Inc.                */
/*  /   /          All Right Reserved.                                 */
/* /---/   /\                                                         */
/* \   \  /  \                                                      */
/*  \___\/\___\                                                    */
/***********************************************************************/

/* This file is designed for use with ISim build 0x79f3f3a8 */

#define XSI_HIDE_SYMBOL_SPEC true
#include "xsi.h"
#include <memory.h>
#ifdef __GNUC__
#include <stdlib.h>
#else
#include <malloc.h>
#define alloca _alloca
#endif
static const char *ng0 = "D:/EN/projet/svnarc/projet_ver1.ews/design.hdl/prescaler.vhd";
extern char *IEEE_P_3499444699;

char *ieee_p_3499444699_sub_4232537207_3536714472(char *, char *, char *, char *, int );


static void work_a_0178122597_0632001823_p_0(char *t0)
{
    char t28[16];
    char *t1;
    char *t2;
    unsigned char t3;
    unsigned char t4;
    char *t5;
    char *t6;
    char *t7;
    char *t8;
    char *t9;
    char *t10;
    unsigned char t11;
    unsigned char t12;
    unsigned char t13;
    unsigned char t14;
    unsigned int t15;
    char *t16;
    char *t17;
    unsigned char t18;
    unsigned int t19;
    char *t20;
    char *t21;
    char *t22;
    char *t23;
    char *t24;
    char *t25;
    char *t26;
    char *t27;

LAB0:    xsi_set_current_line(51, ng0);
    t1 = (t0 + 868U);
    t2 = *((char **)t1);
    t3 = *((unsigned char *)t2);
    t4 = (t3 == (unsigned char)2);
    if (t4 != 0)
        goto LAB2;

LAB4:    t1 = (t0 + 568U);
    t4 = xsi_signal_has_event(t1);
    if (t4 == 1)
        goto LAB7;

LAB8:    t3 = (unsigned char)0;

LAB9:    if (t3 != 0)
        goto LAB5;

LAB6:
LAB3:    t1 = (t0 + 1908);
    *((int *)t1) = 1;

LAB1:    return;
LAB2:    xsi_set_current_line(52, ng0);
    t1 = (t0 + 3568);
    t6 = (t0 + 1952);
    t7 = (t6 + 32U);
    t8 = *((char **)t7);
    t9 = (t8 + 40U);
    t10 = *((char **)t9);
    memcpy(t10, t1, 8U);
    xsi_driver_first_trans_fast(t6);
    xsi_set_current_line(53, ng0);
    t1 = (t0 + 3576);
    t5 = (t0 + 1988);
    t6 = (t5 + 32U);
    t7 = *((char **)t6);
    t8 = (t7 + 40U);
    t9 = *((char **)t8);
    memcpy(t9, t1, 14U);
    xsi_driver_first_trans_fast(t5);
    xsi_set_current_line(54, ng0);
    t1 = (t0 + 2024);
    t2 = (t1 + 32U);
    t5 = *((char **)t2);
    t6 = (t5 + 40U);
    t7 = *((char **)t6);
    *((unsigned char *)t7) = (unsigned char)2;
    xsi_driver_first_trans_fast_port(t1);
    goto LAB3;

LAB5:    xsi_set_current_line(56, ng0);
    t2 = (t0 + 1052U);
    t6 = *((char **)t2);
    t2 = (t0 + 3590);
    t14 = 1;
    if (8U == 8U)
        goto LAB16;

LAB17:    t14 = 0;

LAB18:    if (t14 == 1)
        goto LAB13;

LAB14:    t13 = (unsigned char)0;

LAB15:    if (t13 != 0)
        goto LAB10;

LAB12:    xsi_set_current_line(61, ng0);
    t1 = (t0 + 2024);
    t2 = (t1 + 32U);
    t5 = *((char **)t2);
    t6 = (t5 + 40U);
    t7 = *((char **)t6);
    *((unsigned char *)t7) = (unsigned char)2;
    xsi_driver_first_trans_fast_port(t1);

LAB11:    xsi_set_current_line(63, ng0);
    t1 = (t0 + 960U);
    t2 = *((char **)t1);
    t1 = (t0 + 3612);
    t3 = 1;
    if (14U == 14U)
        goto LAB31;

LAB32:    t3 = 0;

LAB33:    if (t3 != 0)
        goto LAB28;

LAB30:    xsi_set_current_line(67, ng0);
    t1 = (t0 + 960U);
    t2 = *((char **)t1);
    t1 = (t0 + 3496U);
    t5 = ieee_p_3499444699_sub_4232537207_3536714472(IEEE_P_3499444699, t28, t2, t1, 1);
    t6 = (t0 + 1988);
    t7 = (t6 + 32U);
    t8 = *((char **)t7);
    t9 = (t8 + 40U);
    t10 = *((char **)t9);
    memcpy(t10, t5, 14U);
    xsi_driver_first_trans_fast(t6);

LAB29:    goto LAB3;

LAB7:    t2 = (t0 + 592U);
    t5 = *((char **)t2);
    t11 = *((unsigned char *)t5);
    t12 = (t11 == (unsigned char)3);
    t3 = t12;
    goto LAB9;

LAB10:    xsi_set_current_line(58, ng0);
    t22 = (t0 + 776U);
    t23 = *((char **)t22);
    t22 = (t0 + 1952);
    t24 = (t22 + 32U);
    t25 = *((char **)t24);
    t26 = (t25 + 40U);
    t27 = *((char **)t26);
    memcpy(t27, t23, 8U);
    xsi_driver_first_trans_fast(t22);
    xsi_set_current_line(59, ng0);
    t1 = (t0 + 2024);
    t2 = (t1 + 32U);
    t5 = *((char **)t2);
    t6 = (t5 + 40U);
    t7 = *((char **)t6);
    *((unsigned char *)t7) = (unsigned char)3;
    xsi_driver_first_trans_fast_port(t1);
    goto LAB11;

LAB13:    t10 = (t0 + 960U);
    t16 = *((char **)t10);
    t10 = (t0 + 3598);
    t18 = 1;
    if (14U == 14U)
        goto LAB22;

LAB23:    t18 = 0;

LAB24:    t13 = t18;
    goto LAB15;

LAB16:    t15 = 0;

LAB19:    if (t15 < 8U)
        goto LAB20;
    else
        goto LAB18;

LAB20:    t8 = (t6 + t15);
    t9 = (t2 + t15);
    if (*((unsigned char *)t8) != *((unsigned char *)t9))
        goto LAB17;

LAB21:    t15 = (t15 + 1);
    goto LAB19;

LAB22:    t19 = 0;

LAB25:    if (t19 < 14U)
        goto LAB26;
    else
        goto LAB24;

LAB26:    t20 = (t16 + t19);
    t21 = (t10 + t19);
    if (*((unsigned char *)t20) != *((unsigned char *)t21))
        goto LAB23;

LAB27:    t19 = (t19 + 1);
    goto LAB25;

LAB28:    xsi_set_current_line(64, ng0);
    t8 = (t0 + 1052U);
    t9 = *((char **)t8);
    t8 = (t0 + 3512U);
    t10 = ieee_p_3499444699_sub_4232537207_3536714472(IEEE_P_3499444699, t28, t9, t8, 1);
    t16 = (t0 + 1952);
    t17 = (t16 + 32U);
    t20 = *((char **)t17);
    t21 = (t20 + 40U);
    t22 = *((char **)t21);
    memcpy(t22, t10, 8U);
    xsi_driver_first_trans_fast(t16);
    xsi_set_current_line(65, ng0);
    t1 = (t0 + 3626);
    t5 = (t0 + 1988);
    t6 = (t5 + 32U);
    t7 = *((char **)t6);
    t8 = (t7 + 40U);
    t9 = *((char **)t8);
    memcpy(t9, t1, 14U);
    xsi_driver_first_trans_fast(t5);
    goto LAB29;

LAB31:    t15 = 0;

LAB34:    if (t15 < 14U)
        goto LAB35;
    else
        goto LAB33;

LAB35:    t6 = (t2 + t15);
    t7 = (t1 + t15);
    if (*((unsigned char *)t6) != *((unsigned char *)t7))
        goto LAB32;

LAB36:    t15 = (t15 + 1);
    goto LAB34;

}


extern void work_a_0178122597_0632001823_init()
{
	static char *pe[] = {(void *)work_a_0178122597_0632001823_p_0};
	xsi_register_didat("work_a_0178122597_0632001823", "isim/tb_dcf_isim_beh.exe.sim/work/a_0178122597_0632001823.didat");
	xsi_register_executes(pe);
}
